Skip to content

Conversation

DhavalGojiya
Copy link
Member

Summary

This PR adds a GitHub Actions job to validate the uv.lock file and ensure it is consistent with pyproject.toml

Changes

  • Added a new job: UV Lockfile Sync Validation 🔒

    • Checks uv.lock consistency using uv lock --locked
  • Ensures that CI fails if the lockfile is out of sync.

Benefits

  • Prevents out-of-sync dependencies from entering the codebase.
  • Improves CI reliability by catching lockfile issues early.
  • Maintains consistent environment across all contributors and CI runners.

How to Test / Verify

  1. Push changes to a branch with an outdated uv.lock.
  2. Observe that the CI fails the lockfile check.
  3. Update the lockfile with uv lock and verify that CI passes.

- name: Install uv
uses: astral-sh/setup-uv@v6

- name: Check uv.lock sync status
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add uv-lock-check as a prerequisite to test-regular? (to the needs:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants